﻿using UnityEngine;
using System.Collections;
using DICE_GS;

public class PacketLog : MonoBehaviour {

	void OnClick()
	{
		UILabel label = GetComponent<UILabel>();
		string strText="";
		for(int i=StageManagerWrapper.packetTakenList.Count-1; i>=StageManagerWrapper.packetTakenList.Count-20; i--)
		{
			if(i<0)
				continue;
			OperationCodes op = (OperationCodes)StageManagerWrapper.packetTakenList[i];
			strText += op.ToString() + "\r\n";
		}
		label.text = strText;
	}
}
